package com.zc.iotDevice.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 设备附属对象 iot_device_subsidiary
 *
 * @author gaojikun
 * @date 2023-05-16
 */
public class IotDeviceSubsidiaryPort extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 设备ID */
    private Long deviceId;

    /** 端口名称 */
    private String portName;

    /** 端口状态;1-空闲中;2-使用中;3-维修中 */
    private String portState;

    /** 设备别名 */
    private String nickName;

    /** 创建人 */
    private String createName;

    /** 修改人 */
    private String updateName;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getPortName() {
        return portName;
    }

    public void setPortName(String portName) {
        this.portName = portName;
    }

    public String getPortState() {
        return portState;
    }

    public void setPortState(String portState) {
        this.portState = portState;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public IotDeviceSubsidiaryPort(){

    }

    public IotDeviceSubsidiaryPort(Long id,String portState){
        this.id = id;
        this.portState = portState;
    }
}
